/**
 */
package fUML.Syntax.Classes.Kernel;

import java.util.Map;

import org.eclipse.emf.common.util.DiagnosticChain;

/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>Multiplicity Element</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link fUML.Syntax.Classes.Kernel.MultiplicityElement#isIsOrdered <em>Is Ordered</em>}</li>
 *   <li>{@link fUML.Syntax.Classes.Kernel.MultiplicityElement#isIsUnique <em>Is Unique</em>}</li>
 *   <li>{@link fUML.Syntax.Classes.Kernel.MultiplicityElement#getUpper <em>Upper</em>}</li>
 *   <li>{@link fUML.Syntax.Classes.Kernel.MultiplicityElement#getLower <em>Lower</em>}</li>
 *   <li>{@link fUML.Syntax.Classes.Kernel.MultiplicityElement#getUpperValue <em>Upper Value</em>}</li>
 *   <li>{@link fUML.Syntax.Classes.Kernel.MultiplicityElement#getLowerValue <em>Lower Value</em>}</li>
 * </ul>
 * </p>
 *
 * @see fUML.Syntax.Classes.Kernel.KernelPackage#getMultiplicityElement()
 * @model
 * @generated
 */
public interface MultiplicityElement extends Element {
	/**
	 * Returns the value of the '<em><b>Is Ordered</b></em>' attribute.
	 * The default value is <code>"false"</code>.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * <!-- begin-model-doc -->
	 * For a multivalued multiplicity, this attribute specifies whether the values in
	 *                   an instantiation of this element are sequentially ordered..
	 * For a multivalued multiplicity, this attribute specifies whether the values in
	 *                   an instantiation of this element are sequentially ordered.
	 * <!-- end-model-doc -->
	 * @return the value of the '<em>Is Ordered</em>' attribute.
	 * @see #setIsOrdered(boolean)
	 * @see fUML.Syntax.Classes.Kernel.KernelPackage#getMultiplicityElement_IsOrdered()
	 * @model default="false" required="true" ordered="false"
	 * @generated
	 */
	boolean isIsOrdered();

	/**
	 * Sets the value of the '{@link fUML.Syntax.Classes.Kernel.MultiplicityElement#isIsOrdered <em>Is Ordered</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Is Ordered</em>' attribute.
	 * @see #isIsOrdered()
	 * @generated
	 */
	void setIsOrdered(boolean value);

	/**
	 * Returns the value of the '<em><b>Is Unique</b></em>' attribute.
	 * The default value is <code>"true"</code>.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * <!-- begin-model-doc -->
	 * For a multivalued multiplicity, this attributes specifies whether the values
	 *                   in an instantiation of this element are unique.
	 * <!-- end-model-doc -->
	 * @return the value of the '<em>Is Unique</em>' attribute.
	 * @see #setIsUnique(boolean)
	 * @see fUML.Syntax.Classes.Kernel.KernelPackage#getMultiplicityElement_IsUnique()
	 * @model default="true" required="true" ordered="false"
	 * @generated
	 */
	boolean isIsUnique();

	/**
	 * Sets the value of the '{@link fUML.Syntax.Classes.Kernel.MultiplicityElement#isIsUnique <em>Is Unique</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Is Unique</em>' attribute.
	 * @see #isIsUnique()
	 * @generated
	 */
	void setIsUnique(boolean value);

	/**
	 * Returns the value of the '<em><b>Upper</b></em>' attribute.
	 * The default value is <code>"1"</code>.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * <!-- begin-model-doc -->
	 * Specifies the upper bound of the multiplicity interval.
	 * Specifies the upper bound of the multiplicity interval, if it is expressed as
	 *                   an unlimited natural.
	 * <!-- end-model-doc -->
	 * @return the value of the '<em>Upper</em>' attribute.
	 * @see #setUpper(int)
	 * @see fUML.Syntax.Classes.Kernel.KernelPackage#getMultiplicityElement_Upper()
	 * @model default="1" volatile="true" derived="true" ordered="false"
	 * @generated
	 */
	int getUpper();

	/**
	 * Sets the value of the '{@link fUML.Syntax.Classes.Kernel.MultiplicityElement#getUpper <em>Upper</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Upper</em>' attribute.
	 * @see #getUpper()
	 * @generated
	 */
	void setUpper(int value);

	/**
	 * Returns the value of the '<em><b>Lower</b></em>' attribute.
	 * The default value is <code>"1"</code>.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * <!-- begin-model-doc -->
	 * Specifies the lower bound of the multiplicity interval.
	 * Specifies the lower bound of the multiplicity interval, if it is expressed as
	 *                   an integer.
	 * <!-- end-model-doc -->
	 * @return the value of the '<em>Lower</em>' attribute.
	 * @see #setLower(int)
	 * @see fUML.Syntax.Classes.Kernel.KernelPackage#getMultiplicityElement_Lower()
	 * @model default="1" volatile="true" derived="true" ordered="false"
	 * @generated
	 */
	int getLower();

	/**
	 * Sets the value of the '{@link fUML.Syntax.Classes.Kernel.MultiplicityElement#getLower <em>Lower</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Lower</em>' attribute.
	 * @see #getLower()
	 * @generated
	 */
	void setLower(int value);

	/**
	 * Returns the value of the '<em><b>Upper Value</b></em>' containment reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * <!-- begin-model-doc -->
	 * The specification of the upper bound for this multiplicity.
	 * <!-- end-model-doc -->
	 * @return the value of the '<em>Upper Value</em>' containment reference.
	 * @see #setUpperValue(ValueSpecification)
	 * @see fUML.Syntax.Classes.Kernel.KernelPackage#getMultiplicityElement_UpperValue()
	 * @model containment="true" ordered="false"
	 * @generated
	 */
	ValueSpecification getUpperValue();

	/**
	 * Sets the value of the '{@link fUML.Syntax.Classes.Kernel.MultiplicityElement#getUpperValue <em>Upper Value</em>}' containment reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Upper Value</em>' containment reference.
	 * @see #getUpperValue()
	 * @generated
	 */
	void setUpperValue(ValueSpecification value);

	/**
	 * Returns the value of the '<em><b>Lower Value</b></em>' containment reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * <!-- begin-model-doc -->
	 * The specification of the lower bound for this multiplicity.
	 * <!-- end-model-doc -->
	 * @return the value of the '<em>Lower Value</em>' containment reference.
	 * @see #setLowerValue(ValueSpecification)
	 * @see fUML.Syntax.Classes.Kernel.KernelPackage#getMultiplicityElement_LowerValue()
	 * @model containment="true" ordered="false"
	 * @generated
	 */
	ValueSpecification getLowerValue();

	/**
	 * Sets the value of the '{@link fUML.Syntax.Classes.Kernel.MultiplicityElement#getLowerValue <em>Lower Value</em>}' containment reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Lower Value</em>' containment reference.
	 * @see #getLowerValue()
	 * @generated
	 */
	void setLowerValue(ValueSpecification value);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * <!-- begin-model-doc -->
	 * <HTML><HEAD>
	 *  <META content="MSHTML
	 *                   6.00.6000.16674" name=GENERATOR></HEAD>
	 *                   <BODY>upperValue must be a LiteralUnlimitedNatural and lowerValue
	 *                   must be a LiteralInteger. Both are
	 *                   required.</BODY></HTML>
	 * self.upperValue->notEmpty() and
	 *                   self.upperValue->asSequence()->first().oclIsKindOf(LiteralUnlimitedNatural)
	 *                   and
	 *  self.lowerValue->notEmpty() and
	 *                   self.lowerValue->asSequence()->first().oclIsKindOf(LiteralInteger)
	 *                 
	 * @param diagnostics The chain of diagnostics to which problems are to be appended.
	 * @param context The cache of context-specific information.
	 * <!-- end-model-doc -->
	 * @model
	 * @generated
	 */
	boolean required_lower_and_upper_for_fUML(DiagnosticChain diagnostics, Map<Object, Object> context);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model
	 * @generated
	 */
	void MultiplicityElement();

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model isOrderedRequired="true" isOrderedOrdered="false"
	 * @generated
	 */
	void fUML_setIsOrdered(boolean isOrdered);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model isUniqueRequired="true" isUniqueOrdered="false"
	 * @generated
	 */
	void fUML_setIsUnique(boolean isUnique);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model upperValueRequired="true" upperValueOrdered="false"
	 * @generated
	 */
	void fUML_setUpperValue(ValueSpecification upperValue);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model lowerValueRequired="true" lowerValueOrdered="false"
	 * @generated
	 */
	void fUML_setLowerValue(ValueSpecification lowerValue);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model upperRequired="true" upperOrdered="false"
	 * @generated
	 */
	void fUML_setUpper(int upper);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model lowerRequired="true" lowerOrdered="false"
	 * @generated
	 */
	void fUML_setLower(int lower);

} // MultiplicityElement
